<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<base href='<?php echo base_url()?>'>
<link rel="stylesheet" type="text/css" href="public/common/css/common.css"/>
<link rel="stylesheet" type="text/css" href="public/admin/css/admin.css"/>
<script src="public/common/js/jquery.js"></script>
<script>
	$(function(){
		var category_id = "<?php echo $category->category_id?>";
		$('select[name="category_pid"]').children('option').each(function(){
			if($(this).val() == category_id)
			{
				$(this).remove();
			}
			
		});
	});
</script>
</head>
<body>
	<div class="body">
		<div class="main_top"><div class="position left">当前位置 <span>&gt;</span> 栏目 <span>&gt;</span> 管理栏目 <span>&gt;</span> 移动栏目 </div></div>
		<div class="body_center">
			<form action="<?php echo site_url('admin/category/move_category')?>" method="post">
				<table class='table'>
					<tr><th width="20%">参数名</th><th width="55%">参数值</th><th width="25%">参数说明</th></tr>
					<tr>
						<td align='center'>选择的栏目：</td>
						<td><?php echo $category->category_name?></td>
						<td><span class='red'>*</span> 当前所需要移动的栏目</td>
					</tr>
					<tr>
						<td align='center'>移动到：</td>
						<td>
							<select name='category_pid'>
								<option value='0'>顶级分类</option>
								<?php echo $category_tree?>
							</select>
						</td>
						<td><span class='red'>*</span> 选择移动到哪个分类</td>
					</tr>
					<tr>
						<td>&nbsp;</td>
						<td colspan="2">
							<input type='hidden' value='<?php echo $category->category_id?>' name='category_id'>
							<input type="submit" name="submit" class="submit" value="提交" /> &nbsp;&nbsp;
							<input type="reset" name="reset" class="reset" value="重置" />
						</td>
					</tr>
				</table>
			</form>
		</div>
    </div>
</body>
</html>